package com.crm.common.model.Enum.csd;

/**
 * @author yincuimei
 * @Date 2021/9/6 13:39
 */
public enum CustomerContractEnum {
    CONTRACT_TYPE_NONMEMBER("1","非会员合同"),
    CONTRACT_TYPE_NEW("2","会员新单合同"),
    CONTRACT_TYPE_ACTIVITY("3","活动合同"),
    CONTRACT_TYPE_RENEW("4","会员续费合同"),
    CONTRACT_TYPE_EXCHANGE("5","兑换合同"),
    CONTRACT_TYPE_SINGLE_PRODUCT("6","单品合同"),
    CONTRACT_TYPE_SINGLE("7","会员单次");

    private String code;
    private String message;

    CustomerContractEnum(String code,String message) {
        this.code = code;
        this.message = message;
    }

    public static String getMessage(String code) {
        for (CustomerContractEnum customerContractEnum : values()) {
            if(customerContractEnum.code.equals(code)){
                return customerContractEnum.message;
            }
        }
        return "";
    }
}
